home *** CD-ROM | disk | FTP | other *** search
- DefineVariables
- Text [LanguageName] := Arabic ;; match UNIVERSE.INI
- Text [LanguageFileName] := ARABIC.LNG
- Text [DictionaryName] := ARABIC.DCT
- Text [UserDictionaryName] := ARABIC.USR ;; same as dictionary name
- Text [UnicodeConversionName] := ARABIC.SPL
- Directory [UniverseDirectory]
- EndDefineVariables
-
- Dialog
- This disk installs the
- [LanguageName] Spell Checking Dictionary
- and related files.
- EndDialog
-
- [UniverseDirectory] := FullPathTo UNIVERSE.EXE
- [Number1] := LengthOf [UniverseDirectory]
- [Number2] := [Number1] - 13
-
- [InstallationDirectory] := SubstringOf [UniverseDirectory] from 1 to [Number2]
-
- :CheckIfUniverseExists
-
- If FileExists [UniverseDirectory]
- Else
- Dialog [InstallationDirectory] UseHeader "Enter Drive and Directory of UNIVERSE Program:"
-
- (NOTE: UniVerse must be installed before installing a spell checker.)
- Press Esc to exit and install UniVerse if necessary.
-
- EndDialog
-
- GoTo CheckIfUniverseExists
- EndIf
-
- ExamineTextFile [WindowsDirectory]\UNIVERSE.INI
-
- [String1] := LineWith ([LanguageName] Spell Checking,,)
-
- If [String1] = ""
- Dialog
- [LanguageName] has not been installed as a UniVerse language!
-
- Re-install UniVerse and select "[LanguageName]"
- as one of the languages you wish to use, then
- install the spell checker using this disk.
- EndDialog
- SoLong
- EndIf
-
- QueAllFiles to [InstallationDirectory]
- GetQuedFiles
-
- ModifyTextFile [WindowsDirectory]\UNIVERSE.INI
- InSection [[LanguageName] Spell Checking]
- AddOrChangeLineWith (Main Dictionary,,) as "Main Dictionary=[DictionaryName]" at End
- AddOrChangeLineWith (User Dictionary,,) as "User Dictionary=[UserDictionaryName]" at End
- AddOrChangeLineWith (Unicode Conversion,,) as "Unicode Conversion=[UnicodeConversionName]" at End
- EndModifyTextFile
-
- Dialog
- [LanguageName] Spell Checker installed.
- EndDialog
-
- EndScript
-